package com.scap.authen.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table( name = "JA_USER_LOGIN")
public class UserLogin {
	
	@NotEmpty
	@Id
	@Column ( name = "USER_ID", length = 2)
	private String vaUserId;
	
	@Column ( name = "NAME", length = 200)
	private String vaName;
	
	@Column ( name = "POSITION" , length = 200)
	private String vaPosition;
	
	@Column ( name = "EMAIL_ADDRESS" , length = 100)
	private String vaEmailAddress;
	
	@Column ( name = "USER_NAME", length = 200)
	private String vaUserName;
	
	@Column ( name = "USER_PASSWORD", length = 200)
	private String vaUserPassword;
	
	@Column ( name = "STATUS", length = 1)
	private String vaStatus;
	
	@Column ( name = "LOGIN_KEY", length = 10)
	private String vaLoginKey;
	
	@Column ( name = "PASSWORD_KEY", length = 10)
	private String vaPasswordKey;
	
	@Column ( name = "INSERT_USER_ID")
	private int vnInsertUserId;
	
	@Column ( name = "INSERT_DATE", length = 8)
	private String vaInsertDate;
	
	@Column( name = "INSERT_TIME", length = 6)
	private String vaInsertTime;
	
	@Column ( name = "UPDATE_USER_ID")
	private int vnUpdateUserId;
	
	@Column ( name = "UPDATE_DATE", length = 8)
	private String vaUpdateDate;
	
	@Column ( name = "UPDATE_TIME", length = 6)
	private String vaUpdateTime;
	
	public UserLogin(String vaUserId, String vaName, String vaPosition,
			String vaEmailAddress, String vaUserName, String vaUserPassword, 
			String vaStatus, String vaLoginKey, String vaPasswordKey, 
			int vnInsertUserId, String vaInsertDate, String vaInsertTime, 
			int vnUpdateUserId, String vaUpdateDate, String vaUpdateTime) {
		this.vaUserId = vaUserId;
		this.vaName = vaName;
		this.vaPosition = vaPosition;
		this.vaEmailAddress = vaEmailAddress;
		this.vaUserName = vaUserName;
		this.vaUserPassword = vaUserPassword;
		this.vaStatus = vaStatus;
		this.vaLoginKey = vaLoginKey;
		this.vaPasswordKey = vaPasswordKey;
		this.vnInsertUserId = vnInsertUserId;
		this.vaInsertDate = vaInsertDate;
		this.vaInsertTime = vaInsertTime;
		this.vnUpdateUserId = vnUpdateUserId;
		this.vaUpdateDate = vaUpdateDate;
		this.vaUpdateTime = vaUpdateTime;
	}
	
	public UserLogin(){
		
	}

	public String getVaUserId() {
		return vaUserId;
	}

	public void setVaUserId(String vaUserId) {
		this.vaUserId = vaUserId;
	}

	public String getVaName() {
		return vaName;
	}

	public void setVaName(String vaName) {
		this.vaName = vaName;
	}

	public String getVaPosition() {
		return vaPosition;
	}

	public void setVaPosition(String vaPosition) {
		this.vaPosition = vaPosition;
	}
	
	public String getVaEmailAddress() {
		return vaEmailAddress;
	}

	public void setVaEmailAddress(String vaEmailAddress) {
		this.vaEmailAddress = vaEmailAddress;
	}

	public String getVaUserName() {
		return vaUserName;
	}

	public void setVaUserName(String vaUserName) {
		this.vaUserName = vaUserName;
	}

	public String getVaUserPassword() {
		return vaUserPassword;
	}

	public void setVaUserPassword(String vaUserPassword) {
		this.vaUserPassword = vaUserPassword;
	}

	public String getVaStatus() {
		return vaStatus;
	}

	public void setVaStatus(String vaStatus) {
		this.vaStatus = vaStatus;
	}

	public String getVaLoginKey() {
		return vaLoginKey;
	}

	public void setVaLoginKey(String vaLoginKey) {
		this.vaLoginKey = vaLoginKey;
	}

	public String getVaPasswordKey() {
		return vaPasswordKey;
	}

	public void setVaPasswordKey(String vaPasswordKey) {
		this.vaPasswordKey = vaPasswordKey;
	}

	public int getVnInsertUserId() {
		return vnInsertUserId;
	}

	public void setVnInsertUserId(int vnInsertUserId) {
		this.vnInsertUserId = vnInsertUserId;
	}

	public String getVaInsertDate() {
		return vaInsertDate;
	}

	public void setVaInsertDate(String vaInsertDate) {
		this.vaInsertDate = vaInsertDate;
	}

	public String getVaInsertTime() {
		return vaInsertTime;
	}

	public void setVaInsertTime(String vaInsertTime) {
		this.vaInsertTime = vaInsertTime;
	}

	public int getVnUpdateUserId() {
		return vnUpdateUserId;
	}

	public void setVnUpdateUserId(int vnUpdateUserId) {
		this.vnUpdateUserId = vnUpdateUserId;
	}

	public String getVaUpdateDate() {
		return vaUpdateDate;
	}

	public void setVaUpdateDate(String vaUpdateDate) {
		this.vaUpdateDate = vaUpdateDate;
	}

	public String getVaUpdateTime() {
		return vaUpdateTime;
	}

	public void setVaUpdateTime(String vaUpdateTime) {
		this.vaUpdateTime = vaUpdateTime;
	}

	@Override
	public String toString() {
		return "UserLogin [vaUserId=" + vaUserId + ", vaName=" + vaName
				+ ", vaPosition=" + vaPosition + ", vaEmailAddress=" + vaEmailAddress 
				+ ", vaUserName=" + vaUserName + ", vaUserPassword=" + vaUserPassword 
				+ ", vaStatus=" + vaStatus + ", vaLoginKey=" + vaLoginKey 
				+ ", vaPasswordKey=" + vaPasswordKey + ", vnInsertUserId=" + vnInsertUserId
				+ ", vaInsertDate=" + vaInsertDate + ", vaInsertTime="
				+ vaInsertTime + ", vnUpdateUserId=" + vnUpdateUserId
				+ ", vaUpdateDate=" + vaUpdateDate + ", vaUpdateTime="
				+ vaUpdateTime + "]";
	}
}
